Add two virtualized functions gdk_drawable_get_clip_region - to get the
authorOwen Taylor <otaylor@redhat.com>
Fri, 15 Dec 2000 01:46:41 +0000 (01:46 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 15 Dec 2000 01:46:41 +0000 (01:46 +0000)
commit6e5a269f38ad682e116e94efac287fa4ddc46b7f
tree25b336984ac15be84beb85ff71b3d99c11b861ed
parent2142a98c9e8826323941ec3da2c75325ca00eb52
Add two virtualized functions gdk_drawable_get_clip_region - to get the

Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>

        * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
Add two virtualized functions gdk_drawable_get_clip_region - to
get the clip region when drawing.

* gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
use invalidate_region.

* gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
region.

* acconfig.h configure.in: Check for Xft. For now, assume
that if Xft is found, Pango was compiled with Xft support
as well.

* gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
gdk_colormap_query_color().

* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
with Xft if appropriate.

* gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
a pangoxft context if we have XFT and the environment
variable GD_USE_XFT is set.

* gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
and also possibly an XftDraw structure.

        * gtk/gtkfontsel.c: Handle the case where the font from the
style doesn't match any of the fonts a bit better.

* gtk/testgtk.c: Add tabs between directional segments for
hebrew/arabic test. (Not really necessary, just a little
prettier.)
26 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
acconfig.h
configure.in
gdk/gdkcolor.h
gdk/gdkdraw.c
gdk/gdkdrawable.h
gdk/gdkpixmap.c
gdk/gdkwindow.c
gdk/x11/gdkcolor-x11.c
gdk/x11/gdkdrawable-x11.c
gdk/x11/gdkgc-x11.c
gdk/x11/gdkgeometry-x11.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkpango-x11.c
gdk/x11/gdkprivate-x11.h
gdk/x11/gdkwindow-x11.c
gdk/x11/gdkx.h
gtk/gtkfontsel.c
gtk/testgtk.c
tests/testgtk.c